package com.jiwei.system.pojo;

import com.jiwei.system.vo.ResultVO;

/**
 * @title: Result
 * @Author 赖志宇
 * @Description TODO
 * @Date: 2020/8/17
 * @Version 1.0
 */
public class ResultPoJo implements POJO<ResultVO> {
    private String statusCode;
    private String message;
    private Object content;

    public ResultPoJo() {
    }

    public ResultPoJo(String statusCode){
        this.statusCode = statusCode;
    }
    public ResultPoJo(String statusCode, String message, Object content) {
        this.statusCode = statusCode;
        this.message = message;
        this.content = content;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Result{" +
                "statusCode='" + statusCode + '\'' +
                ", message='" + message + '\'' +
                ", content=" + content +
                '}';
    }

    @Override
    public ResultVO changeToVO() {
        return new ResultVO(statusCode,message);
    }
}
